package net.xiduth.events.button;

import net.xiduth.events.ButtonEvent;
import net.xiduth.events.EventManager;
import net.xiduth.game.player.Player;

/**
 * @author Tyluur <ItsTyluur@Gmail.com>
 * @since 2012-07-30
 */
public class LoyaltyEvent implements ButtonEvent {

	@Override
	public boolean init() {
		return EventManager.register(1143, this);
	}

	@Override
	public boolean handle(Player player, int interfaceId, int buttonId,
			int packetId, int slotId, int slotId2) {
		switch(buttonId) {
		case 103:
			player.getInterfaceManager().sendWindowPane();
			return true;
		default:
			System.out.println("loyalty button " + buttonId);
		}
		return false;
	}

}
